import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
Vue.config.productionTip = false
Vue.use(VueRouter)
import Ul_Router from "./views/Ul_Router";
import Contacts from "./views/Contacts";
import About from "./views/About";
import All_contacts from './views/All_contacts.vue'
import Alice from './views/Alice.vue'
import Bob from './views/Bob.vue'
import Blog from './views/Blog.vue'
import Fax from './views/Fax.vue'



const routes = [
  {
    path: "/ul_Router",
    component: Ul_Router
  },
  {
    path: "/contacts",
    component: Contacts,
    children: [
      {
        path: "al_contacts",
        component: All_contacts
      },
      {
        path: "alice",
        component: Alice
      },
      {
        path: "bob",
        component: Bob,
        children: [
          {
            path: "blog",
            component: Blog
          },
          {
            path: "fax",
            component: Fax
          },
        ]
      },
    ]
  },
  {
    path: "/about",
    component: About
  },

]
const router = new VueRouter({
  routes: routes
})
new Vue({
  router: router,
  render: h => h(App),
}).$mount('#app')
